<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property int $id
 * @property string $createtime
 * @property string $detail_ids 选择详情
 * @property string $name 名称
 * @property-read mixed $detail
 * @mixin \think\Model
 */
class TalentData extends Model
{
    protected $createTime = 'createtime';

    function getDetailAttr($value,$data)
    {
        $valueArr = explode(',', $data['detail_ids']);
        return TalentDataDetail::select($valueArr);
    }
}
